package kr.hkit.powerjava.chapter13;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

class HeaderPanel extends JPanel {
	JLabel jlb = new JLabel("자바 피자에 오신것을 환영합니다. 피자의 종류를 선택하시오.");
}
class BtnPanel extends JPanel {

	public BtnPanel() {
		JButton btn01 = new JButton("콤보 피자");
		JButton btn02 = new JButton("포테이토 피자");
		JButton btn03 = new JButton("불고기 피자");
		
		add(btn01);
		add(btn02);
		add(btn03);
		
	}
	
}
class MyWorkFrame extends JFrame {
	public MyWorkFrame() {
		BtnPanel bp = new BtnPanel();
		HeaderPanel hp = new HeaderPanel();
		
		JPanel p = new JPanel();
		p.add(bp);
		p.add(hp);
		
		setSize(600, 150);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setTitle("MyFrame");
		setVisible(true);
	}
}
public class MainTest {
	public static void main(String[] args) {
		new MyWorkFrame();
	}
}
